unit background; 

{$mode objfpc}{$H+}

interface

uses
  Classes, Sysutils, Fileutil, Lresources, Forms, Controls, Graphics, Dialogs,
  ExtCtrls;

type

  { TVideoScreenBackground }

  TVideoScreenBackground = class ( Tform )
    BackgroundImage: TImage;
    procedure FormCreate(Sender: TObject);
  private
    { private Declarations }
  public
    { public Declarations }
  end; 

var
  VideoScreenBackground: TVideoScreenBackground;

implementation

{ TVideoScreenBackground }

procedure TVideoScreenBackground.FormCreate(Sender: TObject);
begin
  if Screen.MonitorCount>1 then
     begin
       Left := Screen.Monitors[1].Left;
       WindowState:=wsMaximized;
     end;
end;

initialization
  {$I background.lrs}

end.

